Update User Account Status
PUT /api/v1/users/{userId}/account/{status}
Description
Update the status of a user account.
Path Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The user ID (path) |
status | string | The account status (path), Available values: ACTIVE, DISABLE, DEACTIVATE, DELETE |
Request Body
- Content Type:
application/json
{
"comment": "string",
"password": "string"
}
Response Code: 200 - OK
Description
Account status updated successfully.
Body
{
"comment": "Please disable the account temporarily.",
"password": "examplePassword123"
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/users/{userId}/account/{status} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!